package com.me.bbs.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.me.bbs.entity.Post;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author Liming Wang
 * @Description
 * @Create 2023/1/19 14:01
 */
@ApiModel(value = "ViewRecordDTO对象", description = "")
@Data
public class ViewRecordDTO {
    @ApiModelProperty("浏览历史记录id")
    private Long recordId;

    @ApiModelProperty("属于的用户")
    private Long user;

    @ApiModelProperty("浏览的文章")
    private PostDTO post;

    @ApiModelProperty("浏览的时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime viewTime;

}
